﻿/*
 * @Description:配置文件
 * @Author: maskMan
 * @LastEditTime: 2024-01-25 10:54:02
 */
/**程序配置文件 */
const fs = require("fs");
export enum APPTYPE {
  APP = "小程序",
  H5 = "公众号",
  WEB = "网站",
  NATIVE = "原生",
  OTHER = "其他",
}
export const monConf = {
  dbName: "pinao",
  user: "admin",
  password: "46456321",
};
export const conf = {
  /**项目名字 */
  appName: "pinao",
  /**程序类型 */
  appType: APPTYPE.APP,
  /**密匙 */
  appid: "wx1a5ccaf81c354935",
  secret: "60546317304263b61878d2f1b22bf64e",
  /**H5跳转地址 */
  url: "https://jiandang.lzmgame.com/demo/index.html",
  /**请求端口 */
  httpPort: 13000,
  /**socket端口 */
  socketPort: 13007,
  /**加密钥匙 */
  secretKey: "/$%da&*|",
  /**token有效期 */
  tokenExpires: "24h",
  key: fs.readFileSync(`${__dirname}/crt/lz.lzmgame.com.key`),
  cert: fs.readFileSync(`${__dirname}/crt/lz.lzmgame.com.crt`),
};
